package com.jzg.jcptadmin.data.vo;

import android.os.Parcel;
import android.os.Parcelable;

import com.jzg.jcptadmin.base.BaseObject;

import java.util.List;

/**
 * Created by wangyd on 16/1/11.
 */
public class VinDetails extends BaseObject implements Parcelable{
    private String CarName;
    private List<Table> Table;
    private List<String> PqlList;
    private List<String> BsxList;
    private String vin;


    public List<String> getBsxList() {
        return BsxList;
    }

    public void setBsxList(List<String> bsxList) {
        BsxList = bsxList;
    }

    public String getCarName() {
        return CarName;
    }

    public void setCarName(String carName) {
        CarName = carName;
    }

    public List<String> getPqlList() {
        return PqlList;
    }

    public void setPqlList(List<String> pqlList) {
        PqlList = pqlList;
    }

    public List<com.jzg.jcptadmin.data.vo.Table> getTable() {
        return Table;
    }

    public void setTable(List<com.jzg.jcptadmin.data.vo.Table> table) {
        Table = table;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    @Override
    public String toString() {
        return "VinDetails{" +
                "BsxList=" + BsxList +
                ", CarName='" + CarName + '\'' +
                ", Table=" + Table +
                ", PqlList=" + PqlList +
                ", vin='" + vin + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.CarName);
        dest.writeTypedList(Table);
        dest.writeStringList(this.PqlList);
        dest.writeStringList(this.BsxList);
        dest.writeString(this.vin);
    }

    public VinDetails() {
    }

    protected VinDetails(Parcel in) {
        super(in);
        this.CarName = in.readString();
        this.Table = in.createTypedArrayList(com.jzg.jcptadmin.data.vo.Table.CREATOR);
        this.PqlList = in.createStringArrayList();
        this.BsxList = in.createStringArrayList();
        this.vin = in.readString();
    }

    public static final Creator<VinDetails> CREATOR = new Creator<VinDetails>() {
        public VinDetails createFromParcel(Parcel source) {
            return new VinDetails(source);
        }

        public VinDetails[] newArray(int size) {
            return new VinDetails[size];
        }
    };
}

